package com.an;

public class Inner {
    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.f();
        outer.setAge(666);
        outer.f();
    }
}

class Outer{
    private int age=10;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void f(){
        class Inter{
            int age=30;
            public void print(){
                System.out.println(Outer.this.age);
            }
        }
        Inter inter = new Inter();
        inter.print();
    }
}
